<table class="table table-bordered table-striped table-hover">
	<tr>
		<th>Title</th>
		<th>Author</th>
		<th>Location</th>
		<th>Category</th>
		<th>Post Date</th>
		<th>Latitude</th>
		<th>Longitude</th>
		<th>Thumbnail</th>
		<th width="10%">Actions</th>
	</tr>
	<?php $no = 1; foreach($query as $data_post): ?>
	<tr>
		<td>
			<a href="<?php echo site_url("Home/post/$data_post[id_post]") ?>" target="_blank">
				<?php echo $data_post['post_title'] ?>
			</a>
		</td>
		<td><?php echo $data_post['fullname_user'] ?></td>
		<td><?php echo $data_post['location_name'] ?></td>
		<td><?php echo $data_post['category_name'] ?></td>
		<td><?php echo $data_post['post_date'] ?></td>
		<td><?php echo $data_post['latitude'] ?></td>
		<td><?php echo $data_post['longitude'] ?></td>
		<td><img src="<?php echo base_url("Images/Post_Thumb/$data_post[thumbnail]") ?>" width="100px"></td>
		<td align="center">
			<a href="<?php echo site_url("Admin/delete_post/$data_post[id_post]") ?>" class="btn btn-sm btn-danger" title="Delete This Post">
				<i class="fa fa-fw fa-trash"></i>
			</a>
			<a href="<?php echo site_url("Admin/edit_post/$data_post[id_post]") ?>" class="btn btn-sm btn-warning" title="Delete This Post">
				<i class="fa fa-fw fa-eraser"></i>
			</a>
		</td>
	</tr>
	<?php $no++; endforeach; ?>
</table>
<?php echo $halaman ?>
<div style="width:100%">